
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>笔记 · Dr. Zhou's HOME</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="Zhou Wei">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-coy.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-advanced-emoji/emojify.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-codeblock-filename/block.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-local-video/video-js.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-image-captions/image-captions.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="springBug.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://weizhou.coding.me/weizhou/intro/" target="_blank" class="custom-link">周炜主页</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    学术研究
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../lecture/lecture.html">
            
                <a href="../../lecture/lecture.html">
            
                    
                    教学课程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../lecture/java/java.html">
            
                <a href="../../lecture/java/java.html">
            
                    
                    Java程序设计
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../../lecture/java/javaCode.html">
            
                <a href="../../lecture/java/javaCode.html">
            
                    
                    课件代码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../lecture/jsp/jsp.html">
            
                <a href="../../lecture/jsp/jsp.html">
            
                    
                    JSP开发技术
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../../lecture/jsp/jspCode.html">
            
                <a href="../../lecture/jsp/jspCode.html">
            
                    
                    课件代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../../lecture/jsp/videos.html">
            
                <a href="../../lecture/jsp/videos.html">
            
                    
                    课程视频
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../lecture/ssh/ssh.html">
            
                <a href="../../lecture/ssh/ssh.html">
            
                    
                    Java Web框架开发技术
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" data-path="../../lecture/ssh/sshCode.html">
            
                <a href="../../lecture/ssh/sshCode.html">
            
                    
                    课件代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.2" data-path="../../lecture/ssh/videos.html">
            
                <a href="../../lecture/ssh/videos.html">
            
                    
                    课程视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.3" data-path="../../lecture/ssh/sshHomework.html">
            
                <a href="../../lecture/ssh/sshHomework.html">
            
                    
                    作业及测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3.4" data-path="../../lecture/ssh/maven/mavenPPT.html">
            
                <a href="../../lecture/ssh/maven/mavenPPT.html">
            
                    
                    Maven简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../programmingNote.html">
            
                <a href="../programmingNote.html">
            
                    
                    软件开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../develop/developNote.html">
            
                <a href="../develop/developNote.html">
            
                    
                    开发总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    Struts2
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="../struts/strutsNote.html">
            
                <a href="../struts/strutsNote.html">
            
                    
                    笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.2" data-path="../struts/strutsBug.html">
            
                <a href="../struts/strutsBug.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" >
            
                <span>
            
                    
                    springMVC
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../springmvc/springmvcNote.html">
            
                <a href="../springmvc/springmvcNote.html">
            
                    
                    笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../springmvc/springmvcBug.html">
            
                <a href="../springmvc/springmvcBug.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" >
            
                <span>
            
                    
                    Spring
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.4.1" data-path="springNote.html">
            
                <a href="springNote.html">
            
                    
                    笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="springBug.html">
            
                <a href="springBug.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" >
            
                <span>
            
                    
                    Hibernate
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../hibernate/hibernateNote.html">
            
                <a href="../hibernate/hibernateNote.html">
            
                    
                    笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2" data-path="../hibernate/hibernateBug.html">
            
                <a href="../hibernate/hibernateBug.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.6" >
            
                <span>
            
                    
                    weex
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.6.1" >
            
                <span>
            
                    
                    笔记
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6.2" data-path="../weex/problems.html">
            
                <a href="../weex/problems.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.7" >
            
                <span>
            
                    
                    前端技术
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.7.1" data-path="../web/webNote.html">
            
                <a href="../web/webNote.html">
            
                    
                    笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7.2" data-path="../web/webBug.html">
            
                <a href="../web/webBug.html">
            
                    
                    坑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.8" >
            
                <span>
            
                    
                    持续集成CI
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.8.1" data-path="../jenkins/jenkinsNote.html">
            
                <a href="../jenkins/jenkinsNote.html">
            
                    
                    Jenkins
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.9" >
            
                <span>
            
                    
                    运维
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.9.1" data-path="../devops/aws.html">
            
                <a href="../devops/aws.html">
            
                    
                    AWS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.2" data-path="../devops/dockerTomcat.html">
            
                <a href="../devops/dockerTomcat.html">
            
                    
                    基于docker运行Tomcat/MySql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.3" data-path="../devops/dockerJenkins.html">
            
                <a href="../devops/dockerJenkins.html">
            
                    
                    基于docker运行Jenkins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9.4" data-path="../devops/aliyun.html">
            
                <a href="../devops/aliyun.html">
            
                    
                    阿里云构建服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.10" >
            
                <span>
            
                    
                    Tools
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.10.1" data-path="../eclipse/eclipseNote.html">
            
                <a href="../eclipse/eclipseNote.html">
            
                    
                    Eclipse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.2" data-path="../idea/ideaNote.html">
            
                <a href="../idea/ideaNote.html">
            
                    
                    IDEA
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10.3" data-path="../vim/vimNote.html">
            
                <a href="../vim/vimNote.html">
            
                    
                    vim
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.11" >
            
                <span>
            
                    
                    项目分析
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.11.1" >
            
                <span>
            
                    
                    电子商场
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.11.1.1" data-path="../projSrc/wemall/basics.html">
            
                <a href="../projSrc/wemall/basics.html">
            
                    
                    基础功能
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.12" >
            
                <span>
            
                    
                    Scrapy
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.12.1" data-path="../scrapy/scrapyNote.html">
            
                <a href="../scrapy/scrapyNote.html">
            
                    
                    Note
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    学生讲座
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../stutalks/worldIntro/worldIntroPPT.html">
            
                <a href="../../stutalks/worldIntro/worldIntroPPT.html">
            
                    
                    我对三观的一些思考
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    我的解决方案
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../solution/dpt/ref.html">
            
                <a href="../../solution/dpt/ref.html">
            
                    
                    DPT-S1解决方案
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../../solution/dpt/webdav.html">
            
                <a href="../../solution/dpt/webdav.html">
            
                    
                    WebDav
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../../solution/dpt/display.html">
            
                <a href="../../solution/dpt/display.html">
            
                    
                    Dpt当显示器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="../../solution/dpt/root.html">
            
                <a href="../../solution/dpt/root.html">
            
                    
                    破解
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../solution/gitbook/gitbookReadme.html">
            
                <a href="../../solution/gitbook/gitbookReadme.html">
            
                    
                    gitBook解决方案
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="../../solution/gitbook/exp.html">
            
                <a href="../../solution/gitbook/exp.html">
            
                    
                    gitbook经验
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="../../solution/gitbook/error.html">
            
                <a href="../../solution/gitbook/error.html">
            
                    
                    gitBook坑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="../../solution/gitbook/script.html">
            
                <a href="../../solution/gitbook/script.html">
            
                    
                    gitBook脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="../../solution/gitbook/awsDocker.html">
            
                <a href="../../solution/gitbook/awsDocker.html">
            
                    
                    使用docker构建gitbook服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.5" data-path="../../solution/gitbook/atom.html">
            
                <a href="../../solution/gitbook/atom.html">
            
                    
                    markdown编辑器Atom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.6" data-path="../../solution/gitbook/ieee.html">
            
                <a href="../../solution/gitbook/ieee.html">
            
                    
                    使用markdown写IEEE论文
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >笔记</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6587;&#x4EF6;&#x76F8;&#x5173;&#x64CD;&#x4F5C;">1. &#x6587;&#x4EF6;&#x76F8;&#x5173;&#x64CD;&#x4F5C;</h1>
<ul>
<li>&#x57FA;&#x4E8E;Maven&#x7684;ssh&#x6846;&#x67B6;&#x4E2D;Spring&#x5411;Struts2&#x6CE8;&#x5165;&#x65F6;&#xFF0C;&#x5FC5;&#x987B;&#x9700;&#x8981;struts2-spring-plugin&#x652F;&#x6301;</li>
<li>&#x521B;&#x5EFA;UploadService&#xFF0C;void saveFile(String dirPath, String fileName, File file) , Action&#x4E2D;&#x63A5;&#x6536;File&#x6210;&#x5458;&#x53D8;&#x91CF;&#xFF0C;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x7684;<code><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>input</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span>&#x201D;file&#x201D;</span><span class="token punctuation">&gt;</span></span></code>&#x5BF9;&#x5E94;&#x4E00;&#x4E2A;File&#x6210;&#x5458;&#x53D8;&#x91CF;&#xFF0C;&#x4E00;&#x6B21;&#x4F20;&#x591A;&#x4E2A;&#x6587;&#x4EF6;&#xFF0C;&#x4F1A;&#x591A;&#x6B21;&#x8C03;&#x7528;&#x8BE5;action&#xFF0C;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x4E0A;&#x4F20;&#x7684;&#x6587;&#x4EF6;&#x5230;&#x4E00;&#x4E2A;&#x7279;&#x5B9A;&#x76EE;&#x5F55;</li>
<li>File&#x6D41;&#x5411;&#x78C1;&#x76D8;&#x5199;&#x6587;&#x4EF6;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x5B58;&#x5728;&#x540C;&#x540D;&#x6587;&#x4EF6;&#x4F1A;&#x76F4;&#x63A5;&#x8986;&#x76D6;</li>
<li>uploadify&#x5F53;&#x6211;&#x5728;&#x914D;&#x7F6E;uploadify&#x65F6;&#xFF0C;&#x6307;&#x5B9A;button_image_url&#x4F1A;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x4ED6;&#x4F1A;&#x8BBF;&#x95EE;&#x6307;&#x5B9A;&#x7684;url&#x5730;&#x5740;&#xFF0C;&#x5982;&#x679C;&#x8BBE;&#x4E3A;&#x7A7A;&#x6216;&#x8005;&#x4E0D;&#x8BBE;&#x7F6E;&#xFF0C;uploadify&#x521D;&#x59CB;&#x5316;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x81EA;&#x52A8;&#x8BF7;&#x6C42;&#x5F53;&#x524D;&#x7684;url&#x3002;</li>
<li>window.open()&#x3001;location.href&#x4E0B;&#x8F7D;&#x6587;&#x4EF6;&#x65F6;&#x4E2D;&#x6587;&#x8DEF;&#x5F84;&#x4E71;&#x7801;&#x89E3;&#x51B3;
&#x4E0A;&#x9762;&#x4E24;&#x79CD;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x4E71;&#x7801;&#x3002;&#x6839;&#x672C;&#x95EE;&#x9898;&#x662F;&#x670D;&#x52A1;&#x5668;&#x7684;&#x7F16;&#x7801;&#x95EE;&#x9898;&#xFF1A;&#x8FD9;&#x91CC;&#x7528;&#x5230;&#x7684;&#x662F;tomcat&#x670D;&#x52A1;&#x5668;&#x3002;&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#xFF1A;<pre class="language-"><code>1&#xFF1A;tomcat &#x5B89;&#x88C5;&#x8DEF;&#x5F84;&#x4E0B; &#x627E;&#x5230; conf&#x6587;&#x4EF6;&#x4E0B;&#x7684;server.xml
2&#xFF1A;<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Connector</span> <span class="token attr-name">port</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>8080<span class="token punctuation">&quot;</span></span> <span class="token attr-name">URIEncoding</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>utf-8<span class="token punctuation">&quot;</span></span> <span class="token attr-name">protocol</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>HTTP/1.1<span class="token punctuation">&quot;</span></span>
             <span class="token attr-name">connectionTimeout</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>20000<span class="token punctuation">&quot;</span></span>
             <span class="token attr-name">redirectPort</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>8443<span class="token punctuation">&quot;</span></span> <span class="token punctuation">/&gt;</span></span>
3&#xFF1A;&#x91CD;&#x542F;&#x670D;&#x52A1;&#x5668;  ok&#x4E86;
</code></pre></li>
<li>Uploadfiy&#x591A;&#x4E2A;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;&#x662F;&#x591A;&#x4E2A;&#x8BF7;&#x6C42;&#xFF0C;&#x591A;&#x4E2A;&#x8BF7;&#x6C42;&#x5E76;&#x53D1;&#x53BB;&#x83B7;&#x53D6;&#x5E76;&#x66F4;&#x65B0;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x7684;&#x6301;&#x4E45;&#x5316;&#x5BF9;&#x8C61;&#x7684;&#x503C;&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x95EE;&#x9898;&#x3002;&#x5E94;&#x8BE5;&#x5148;&#x7EDF;&#x4E00;&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#xFF0C;&#x7136;&#x540E;&#x5C06;&#x6240;&#x6709;&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#x7684;id&#x4E00;&#x6B21;&#x6027;&#x66F4;&#x65B0;&#x5230;&#x6301;&#x4E45;&#x5316;&#x5BF9;&#x8C61;&#x5C5E;&#x6027;&#x503C;&#x4E2D;</li>
</ul>
<h1 id="spring&#x5176;&#x4ED6;">2. Spring&#x5176;&#x4ED6;</h1>
<ul>
<li>SSH&#x9879;&#x76EE;&#x5305;&#x95EE;&#x9898;&#x3002;&#x7531;&#x4E8E;SSH&#x7ED3;&#x6784;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x603B;&#x662F;&#x9700;&#x8981;&#x4E00;&#x4E9B;&#x6700;&#x5E38;&#x7528;&#x7684;CRUD&#x64CD;&#x4F5C;&#x51FA;&#x73B0;&#x5728;Service&#x548C;dao&#x5C42;&#xFF0C;&#x7531;&#x4E8E;&#x8FD9;&#x4E9B;&#x90FD;&#x662F;&#x548C;&#x901A;&#x7528;&#x9886;&#x57DF;vo&#x5BF9;&#x8C61;&#x76F8;&#x5173;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x5EFA;&#x8BAE;&#x8FD9;&#x4E9B;dao&#x548C;service&#x90FD;&#x8D77;&#x540D;&#x4E3A;voService&#x6216;&#x8005;voDao&#x3002;dao&#x4E00;&#x822C;&#x4E0D;&#x4F1A;&#x548C;&#x4E1A;&#x52A1;&#x76F8;&#x5173;&#x800C;&#x662F;&#x548C;vo&#x7D27;&#x5BC6;&#x76F8;&#x5173;&#xFF0C;&#x56E0;&#x6B64;&#x4E0D;&#x592A;&#x4F1A;&#x51FA;&#x73B0;&#x522B;&#x7684;dao&#x3002;&#x4F46;&#x662F;service&#x4F1A;&#x548C;&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x76F8;&#x5173;&#xFF0C;&#x6240;&#x4EE5;&#x9664;&#x4E86;&#x8FD9;&#x4E9B;voService&#xFF0C;&#x8FD8;&#x9700;&#x8981;&#x4E00;&#x4E9B;&#x4E1A;&#x52A1;xxxService&#x3002;&#xFF08;&#x4EE5;&#x540E;&#xFF09;&#x5EFA;&#x8BAE;&#x5C06;vo,voDao,voService&#x653E;&#x5230;&#x4E00;&#x4E2A;&#x901A;&#x7528;&#x7684;domain&#x5305;&#x4E2D;&#xFF0C;voDao&#xFF0C;voService&#x90FD;&#x7EE7;&#x627F;&#x5E76;&#x91CD;&#x7528;baseDao&#xFF0C;baseService&#xFF0C;&#x5176;&#x4ED6;&#x540C;&#x4E1A;&#x52A1;&#x5BC6;&#x5207;&#x76F8;&#x5173;&#x7684;action&#xFF0C;service&#x653E;&#x5230;&#x6A21;&#x5757;&#x5305;&#x81EA;&#x5DF1;&#x5B9E;&#x73B0;&#x5185;&#x5BB9;&#x4E2D;&#x3002;</li>
<li>spring @Resource  &#x4E0D;&#x7528;&#x5199;getter/setter&#x65B9;&#x6CD5;</li>
<li>service&#x5C42;&#x662F;&#x5426;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8C03;&#x7528;service&#x5C42;&#xFF0C;&#x90FD;&#x53EF;&#x4EE5;&#xFF0C;&#x770B;&#x5177;&#x4F53;&#x60C5;&#x51B5;&#xFF0C;&#x597D;&#x5904;&#x662F;service&#x4E0D;&#x7528;&#x8C03;&#x7528;&#x522B;&#x7684;dao&#xFF0C;&#x8FD9;&#x5B9E;&#x73B0;&#x4E86;&#x6570;&#x636E;&#x5E93;&#x5E95;&#x5C42;&#x5206;&#x79BB;&#xFF0C;&#x5982;&#x679C;&#x6709;cache&#xFF0C;&#x5206;&#x5E93;&#xFF08;&#x53E6;&#x4E00;&#x4E2A;dao&#x5728;&#x53E6;&#x4E00;&#x4E2A;&#x4E0D;&#x540C;&#x7684;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#xFF09;&#xFF0C;&#x5219;service&#x8C03;&#x7528;&#x522B;&#x7684;dao&#x5C31;&#x4E0D;&#x53EF;&#x80FD;&#x4E86;&#xFF0C;&#x6B64;&#x5916;&#x5C06;&#x53CD;&#x590D;&#x8C03;&#x7528;&#x7684;&#x4EE3;&#x7801;&#x5C01;&#x88C5;&#x5230;&#x53E6;&#x4E00;&#x4E2A;service&#x65B9;&#x6CD5;&#x4E2D;&#x8FD8;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x4EE3;&#x7801;&#x91CD;&#x7528;&#x3002;&#x574F;&#x5904;&#x53EF;&#x80FD;&#x662F;&#x7B80;&#x5355;&#x7CFB;&#x7EDF;&#x590D;&#x6742;&#x5316;&#xFF0C;&#x8FD8;&#x8981;&#x5728;service&#x4E2D;&#x5B9A;&#x4E49;&#xFF08;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;baseService&#x51CF;&#x8F7B;&#xFF09;&#xFF0C;&#x53E6;&#x5916;&#x53EF;&#x80FD;&#x5B58;&#x5728;&#x4E8B;&#x52A1;&#x5D4C;&#x5957;&#x95EE;&#x9898;&#x3002;</li>
<li>&#x7C7B;&#x578B;&#x7684;&#x89E3;&#x8026;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x679A;&#x4E3E;&#x7C7B;&#x578B;&#xFF0C;&#x9875;&#x9762;&#x5F15;&#x7528;&#x5230;&#x679A;&#x4E3E;&#x7C7B;&#x578B;&#x53D8;&#x91CF;&#xFF08;&#x53D8;&#x91CF;&#x540D;&#x4E2D;&#x6CA1;&#x6709;&#x8FC7;&#x7A0B;&#x5E8F;&#x53F7;&#xFF0C;&#x4EC5;&#x6709;&#x540D;&#x79F0;&#xFF09;&#xFF0C;&#x7136;&#x540E;&#x7F16;&#x5199;&#x679A;&#x4E3E;&#x7C7B;&#x578B;&#x6620;&#x5C04;&#x5230;&#x5E95;&#x5C42;&#x6570;&#x636E;&#x5E93;&#xFF08;&#x5B57;&#x7B26;&#x4E32;&#x6216;&#x8005;&#x8868;&#xFF09;</li>
<li>service&#x5C42;&#x4E2D;&#x7684;&#x4E1A;&#x52A1;&#x65B9;&#x6CD5;&#x6700;&#x597D;&#x4E0D;&#x8981;&#x7528;try&#xFF0C;catch&#xFF0C;&#x8FD9;&#x6837;&#x4F1A;&#x7834;&#x574F;spring aop&#x7684;&#x4E8B;&#x52A1;&#x7BA1;&#x7406;&#xFF08;&#x5F02;&#x5E38;&#x88AB;&#x6293;&#x4F4F;&#x5C31;&#x4E0D;&#x4F1A;&#x5BFC;&#x81F4;aop&#x56DE;&#x6EDA;&#xFF0C;aop&#x4F1A;&#x4EE5;&#x4E3A;&#x65B9;&#x6CD5;&#x6B63;&#x5E38;&#x8FD0;&#x884C;&#xFF09;&#xFF0C;&#x65E0;&#x6CD5;&#x4FDD;&#x8BC1;&#x6574;&#x4E2A;&#x4E1A;&#x52A1;&#x65B9;&#x6CD5;&#x6574;&#x4F53;&#x6027;&#x5B8C;&#x6210;</li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5468;&#x709C; 2016-2017 &#x5982;&#x9700;&#x8F6C;&#x8F7D;&#x8BF7;&#x6807;&#x660E;&#x51FA;&#x5904; all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-04-02 13:28:03
</span></footer><div id="anchors-navbar"><i class="fa fa-anchor"></i><ul><p><a href="#"></a></p><li><a href="#&#x6587;&#x4EF6;&#x76F8;&#x5173;&#x64CD;&#x4F5C;">1. &#x6587;&#x4EF6;&#x76F8;&#x5173;&#x64CD;&#x4F5C;</a></li><li><a href="#spring&#x5176;&#x4ED6;">2. Spring&#x5176;&#x4ED6;</a></li></ul></div><a href="#&#x6587;&#x4EF6;&#x76F8;&#x5173;&#x64CD;&#x4F5C;" id="goTop"><i class="fa fa-arrow-up"></i></a>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="springBug.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 坑">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"笔记","level":"1.3.4.1","depth":3,"next":{"title":"坑","level":"1.3.4.2","depth":3,"path":"programming/spring/springBug.md","ref":"programming/spring/springBug.md","articles":[]},"previous":{"title":"Spring","level":"1.3.4","depth":2,"ref":"","articles":[{"title":"笔记","level":"1.3.4.1","depth":3,"path":"programming/spring/springNote.md","ref":"programming/spring/springNote.md","articles":[]},{"title":"坑","level":"1.3.4.2","depth":3,"path":"programming/spring/springBug.md","ref":"programming/spring/springBug.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","search-jieba","-highlight","prism","advanced-emoji@0.1.5","include-codeblock","ace","emphasize","katex","anchors","mermaid","tbfed-pagefooter","sectionx","expandable-chapters","codeblock-filename","local-video","splitter","duoshuo","baidu","donate","anchors","anchor-navigation-ex","image-captions"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-jieba":{},"tbfed-pagefooter":{"copyright":"Copyright &copy 周炜 2016-2017 如需转载请标明出处","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-coy.css"]},"emphasize":{},"ace":{},"github":{"url":"https://github.com/zhangjikai/gitbook-use"},"splitter":{},"search":{},"mermaid":{},"duoshuo":{"short_name":"weigitbooktest","theme":"default"},"donate":{"alipay":"http://weizhou.coding.me/weizhou/images/ZhouWeiAlipay.png","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"http://weizhou.coding.me/weizhou/images/ZhouWeiWechatPay.jpg","wechatText":"微信打赏"},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sectionx":{},"anchor-navigation-ex":{"isRewritePageTitle":true},"codeblock-filename":{},"sitemap":{"hostname":"http://www.baidu.com"},"local-video":{},"baidu":{"token":"a3f08983487a96aa9943fa1394254a16"},"advanced-emoji":{"myConfigKey":"test"},"include-codeblock":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{},"image-captions":{"caption":"Image _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_","variable_name":"_pictures"}},"theme":"default","author":"Zhou Wei","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"_pictures":[{"backlink":"lecture/ssh/sshHomework.html#fig1.2.3.3.1","level":"1.2.3.3","list_caption":"Figure: SpringTest项目图","alt":"SpringTest项目图","nro":1,"url":"assets/markdown-img-paste-20170412131653323.png","index":1,"caption_template":"Image _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_","label":"SpringTest项目图","attributes":{},"skip":false,"key":"1.2.3.3.1"}]},"title":"Dr. Zhou's HOME","language":"zh-hans","links":{"sidebar":{"周炜主页":"http://weizhou.coding.me/weizhou/intro/"}},"gitbook":"3.2.2","description":"Dr. Zhou's HOME"},"file":{"path":"programming/spring/springNote.md","mtime":"2018-04-02T13:28:03.729Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-04-02T13:28:08.830Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-jieba/pouchdb.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-jieba/pouchdb.load.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-jieba/search-jieba.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-local-video/video.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-duoshuo/duoshuo.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-baidu/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

